package com.flurry.android;

import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.FrameLayout;
import android.widget.FrameLayout.LayoutParams;

final class aq
{
  private View cJ;
  private int cK;
  private BasicWebView.BasicWebViewFullScreenTransitionHandler.BasicWebViewFullScreenTransitionCallback cL;
  private FrameLayout cM;

  private aq(FlurryFullscreenTakeoverActivity paramFlurryFullscreenTakeoverActivity, byte paramByte)
  {
  }

  public final void U()
  {
    if (this.cJ == null)
      return;
    ((ViewGroup)this.u.getWindow().getDecorView()).removeView(this.cM);
    this.cM.removeView(this.cJ);
    if (this.cL != null)
      this.cL.onBasicWebViewTransitionFromFullScreenFinished();
    this.u.setRequestedOrientation(this.cK);
    this.cL = null;
    this.cM = null;
    this.cJ = null;
  }

  public final void a(cf paramcf, View paramView, int paramInt, BasicWebView.BasicWebViewFullScreenTransitionHandler.BasicWebViewFullScreenTransitionCallback paramBasicWebViewFullScreenTransitionCallback)
  {
    if (this.cJ != null)
      U();
    this.cJ = paramView;
    this.cK = this.u.getRequestedOrientation();
    this.cL = paramBasicWebViewFullScreenTransitionCallback;
    this.cM = new FrameLayout(this.u);
    this.cM.setBackgroundColor(-16777216);
    this.cM.addView(this.cJ, new FrameLayout.LayoutParams(-1, -1, 17));
    ((ViewGroup)this.u.getWindow().getDecorView()).addView(this.cM, -1, -1);
    this.u.setRequestedOrientation(paramInt);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.aq
 * JD-Core Version:    0.6.2
 */